package com.koron.order.linedefect.base.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.base.BaseQueryBean;
import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.linedefect.base.bean.po.DefectExecute;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (DefectExecute)表服务接口
 *
 * @author zhouj
 * @since 2021-09-03 16:48:35
 */
public interface DefectExecuteService extends CommonService {

    int insert(SessionFactory factory, DefectExecute defectExecute);

    int insertBatch(SessionFactory factory, List<DefectExecute> defectExecuteList);

    int update(SessionFactory factory, DefectExecute defectExecute);

    int insertOrUpdate(SessionFactory factory, DefectExecute defectExecute);

    int deleteById(SessionFactory factory, String id);

    DefectExecute queryById(SessionFactory factory, String id);

    PageInfo queryList(SessionFactory factory, DefectExecute defectExecute, BaseQueryBean pageBean);

    int deleteByOrderId(SessionFactory factory, String orderId);

    int deleteByOrderExecuteId(SessionFactory factory, String executeId);

}
